package com.imooc.pan.server.common.event.file;

import com.imooc.pan.server.modules.file.entity.RPanUserFile;
import lombok.*;
import org.springframework.context.ApplicationEvent;

import java.io.Serializable;
import java.util.List;

/**
 * 文件被物理删除的事件实体
 */
@Getter
@Setter
@EqualsAndHashCode
@ToString
public class FilePhysicalDeleteEvent extends ApplicationEvent {


    /**
     * 所有被物理删除的文件实体集合
     */
    private List<RPanUserFile> allRecords;


    public FilePhysicalDeleteEvent(Object source,List<RPanUserFile> allRecords) {
        super(source);
        this.allRecords = allRecords;
    }
}
